<?php 
echo $javascript->link('index',false) ;
$baseurl=Configure::read('App.baseUrl');
?>
<script>
var baseurl="<?php e($baseurl)?>";
</script>
 <div id="headbar">
      <ul >
      <li><a href='' id='add'>添加分类</a></li>
      <li><a  href='' id='move'>移动到--></a></li>
      <select id='pid'>
      <?php
        e("<option value=0>顶级</option>");
        foreach($tt as $k=>$v){
            e("<option value='$k'>$v</option>");
        }
      ?>
      </select>
      <li><a href='<?php e($baseurl) ?>admin/Types/createAllHtml'>生成全部分类页</a></li>
      </ul>
 </div>
 <div id='content'>
 <table width="96%" class='list'>
 <tr>
    <th width="5%" class='rowhead'>ID</th><th>标题</th><th width="6%">父类ID</th>
    <th width="6%">优先级</th><th width="10%">模板名称</th>
    <th width="10%">菜单隐藏</th>
    <th width="15%">操作</th>
 </tr>
<?php
    foreach($treeArray as $node){
        $treetb->node2row('-----',$node,'name',true);
    }
    if(!empty($treetb->result))
            echo $treetb->result;
?>
 </table>
 </div>
              
